<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbpersvicoEditDlg" widgetVar="PyfntbpersvicoEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPyfntbpersvicoTitle}">

            <h:form id="PyfntbpersvicoEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pyfntbpersvicoController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPyfntbpersvicoLabel_pyfntbpersvicoid}" for="pyfntbpersvicoid" />
                        <h:outputText id="pyfntbpersvicoid" value="#{pyfntbpersvicoController.selected.pyfntbpersvicoid}" />

                        <p:outputLabel value="#{myBundle.EditPyfntbpersvicoLabel_pyfntbpedidperid}" for="pyfntbpedidperid" />
                        <p:selectOneMenu id="pyfntbpedidperid" value="#{pyfntbpersvicoController.selected.pyfntbpedidperid}" required="true" requiredMessage="#{myBundle.EditPyfntbpersvicoRequiredMessage_pyfntbpedidperid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbpedidperController.items}"
                                           var="pyfntbpedidperidItem"
                                           itemValue="#{pyfntbpedidperidItem}"
                                           itemLabel="#{pyfntbpedidperidItem.pyfntbpedidperid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbpedidperConverter}"/>
                        </p:selectOneMenu>
                        
                        <p:outputLabel value="#{myBundle.EditPyfntbpersvicoLabel_descripcion}" for="descripcion" />
                        <p:inputText id="descripcion" value="#{pyfntbpersvicoController.selected.descripcion}" title="#{myBundle.EditPyfntbpersvicoTitle_descripcion}" required="true" requiredMessage="#{myBundle.EditPyfntbpersvicoRequiredMessage_descripcion}"/>
                        
                        <p:outputLabel value="#{myBundle.EditPyfntbpersvicoLabel_referencia}" for="referencia" />
                        <p:inputText id="referencia" value="#{pyfntbpersvicoController.selected.referencia}" title="#{myBundle.EditPyfntbpersvicoTitle_referencia}" required="true" requiredMessage="#{myBundle.EditPyfntbpersvicoRequiredMessage_referencia}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbpersvicoLabel_fechareferencia}" for="fechareferencia" />
                        <p:calendar id="fechareferencia" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbpersvicoController.selected.fechareferencia}" title="#{myBundle.EditPyfntbpersvicoTitle_fechareferencia}" required="true" requiredMessage="#{myBundle.EditPyfntbpersvicoRequiredMessage_fechareferencia}" showOn="button"/>
                        
                        <p:outputLabel value="#{myBundle.EditPyfntbpersvicoLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbpersvicoController.selected.observaciones}" title="#{myBundle.EditPyfntbpersvicoTitle_observaciones}" />

                        <p:outputLabel value="#{myBundle.EditPyfntbpersvicoLabel_scittbfadeceid}" for="scittbfadeceid" />
                        <p:selectOneMenu id="scittbfadeceid" value="#{pyfntbpersvicoController.selected.scittbfadeceid}" required="true" requiredMessage="#{myBundle.EditPyfntbpersvicoRequiredMessage_scittbfadeceid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scittbfadeceController.items}"
                                           var="scittbfadeceidItem"
                                           itemValue="#{scittbfadeceidItem}"
                                           itemLabel="#{scittbfadeceidItem.scittbfadeceid.toString()}"
                                           />
                            <f:converter binding="#{scittbfadeceConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditPyfntbpersvicoLabel_scittbescunid}" for="scittbescunid" />
                        <p:selectOneMenu id="scittbescunid" value="#{pyfntbpersvicoController.selected.scittbescunid}" >
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scittbescunController.items}"
                                           var="scittbescunidItem"
                                           itemValue="#{scittbescunidItem}"
                                           itemLabel="#{scittbescunidItem.scittbescunid.toString()}"
                                           />
                            <f:converter binding="#{scittbescunConverter}"/>
                        </p:selectOneMenu>

                        
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbpersvicoController.save}" value="#{myBundle.Save}" update="display,:PyfntbpersvicoListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbpersvicoEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbpersvicoEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
